package com.rds.workflow.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.rds.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 1对象 rda_node_templete
 *
 * @author 1
 * @date 2021-11-24
 */
public class RdaNodeTemplete extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 流程模板节点id */
    private Long id;

    /** 流程模板节点名 */
    private String nodeName;

    /** 流程模板节点描述 */
    private String description;

    /** 层级 */
    private Integer level;


    /** 流程模板ID */
    private Long workflowid;

    /** 流程模板节点序号 */
    private Integer rdorder;

    /** 用户ID */
    private String userId;

    /** 数组用户ID */
    private Long [] userIds;

    /** 角色ID */
    private Long roleId;

    /** 用户名称 */
    private String userName;

    /** 角色名称 */
    private String roleName;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifyTime;

    /** 所有者 */
    private Integer ownerid;

    /** 类型Id */
    private Integer typeid;

    /** 策略Id */
    private Integer policyid;

    /** 状态id */
    private Integer stateid;

    /** 状态(0正常,1停用) 默认0 */
    private Integer status;

    /** 删除标志(0代表存在 2代表删除) */
    private Integer delFlag;

    /** 节点类型 0 开始,1 中间节点,-1 结束节 */
    private Integer nodeType;

    /** 关联人员属性 and or */
    private String userandor;

    /** 关联角色属性 and or */
    private String nodeandor;

    /** 拒绝操作开始*/
    private String operationStartType;

    /** 拒绝操作结束*/
    private String operationLastType;

    /** 响应类型*/
    private String responseType;

    /** 响应版本*/
    private String revision;

    /** 是否拒绝到开始节点*/
    private boolean rejectTostart;

    /** 是否拒绝到开始节点 1是 2否*/
    private String isRejectTostart;

    /** 拒绝到上一节点*/
    private boolean rejectToprevious;

    /** 拒绝后跳过完成节点*/
    private boolean rejectSkipComplete;

    /** 审批通过后程序*/
    private String appovedScript;

    /** 拒绝到开始处理程序*/
    private String rejecttostartScript;


    /** 接流程模板id */
    private Long projectid;

    /** 上级节点*/
    private Long superiorNodeId;

    /** 下级节点*/
    private Long lowerNodeId;

    /** 上下级节点id*/
    private String ancestors;

    /** 下级节点操作类型*/
//    private String operationType;

    /** 流程模板节点id*/
    private Long fromid;

    /** 流程模板ID*/
    private Long toid;

    private String fromidArray;

    private String toidArray;

    /** 上级节点名*/
    private String fromName;

    /** 下级节点名*/
    private String toName;

    /** 上级节点*/
    private Long [] superiorNodeIds;

    /** 下级节点*/
    private Long [] lowerNodeIds;

    /** 是否是自动节点*/
    private boolean rejectAutomatic;

    /** 是否是自动节点 1是 2否*/
    private String isRejectAutomatic;

    /** 拒绝程序*/
    private String rejectScript;

    /** 是否允许撤回*/
    private String isWithdraw;

    /** 是否允许委托*/
    private String isAgent;

    /** x坐标*/
    private Long x;

    /** y坐标*/
    private Long y;

    /** 条件1*/
    private String script1;

    /** 条件2*/
    private String script2;

    /** 条件3*/
    private String script3;

    /** 条件4*/
    private String script4;

    /** 条件5*/
    private String script5;

    /** 邮箱*/
    private String email;



    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getNodeName() {
        return nodeName;
    }

    public void setNodeName(String nodeName) {
        this.nodeName = nodeName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }



    public Long getWorkflowid() {
        return workflowid;
    }

    public void setWorkflowid(Long workflowid) {
        this.workflowid = workflowid;
    }

    public Integer getRdorder() {
        return rdorder;
    }

    public void setRdorder(Integer rdorder) {
        this.rdorder = rdorder;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Integer getOwnerid() {
        return ownerid;
    }

    public void setOwnerid(Integer ownerid) {
        this.ownerid = ownerid;
    }

    public Integer getTypeid() {
        return typeid;
    }

    public void setTypeid(Integer typeid) {
        this.typeid = typeid;
    }

    public Integer getPolicyid() {
        return policyid;
    }

    public void setPolicyid(Integer policyid) {
        this.policyid = policyid;
    }

    public Integer getStateid() {
        return stateid;
    }

    public void setStateid(Integer stateid) {
        this.stateid = stateid;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Long getProjectid() {
        return projectid;
    }

    public void setProjectid(Long projectid) {
        this.projectid = projectid;
    }

    public Long getSuperiorNodeId() {
        return superiorNodeId;
    }

    public void setSuperiorNodeId(Long superiorNodeId) {
        this.superiorNodeId = superiorNodeId;
    }

    public Long getLowerNodeId() {
        return lowerNodeId;
    }

    public void setLowerNodeId(Long lowerNodeId) {
        this.lowerNodeId = lowerNodeId;
    }

/*    public String getOperationType() {
        return operationType;
    }

    public void setOperationType(String operationType) {
        this.operationType = operationType;
    }*/

    public Long getFromid() {
        return fromid;
    }

    public void setFromid(Long fromid) {
        this.fromid = fromid;
    }

    public Long getToid() {
        return toid;
    }

    public void setToid(Long toid) {
        this.toid = toid;
    }

    public String getAncestors() {
        return ancestors;
    }

    public void setAncestors(String ancestors) {
        this.ancestors = ancestors;
    }

    public Integer getNodeType() {
        return nodeType;
    }

    public void setNodeType(Integer nodeType) {
        this.nodeType = nodeType;
    }

    public String getUserandor() {
        return userandor;
    }

    public void setUserandor(String userandor) {
        this.userandor = userandor;
    }

    public String getNodeandor() {
        return nodeandor;
    }

    public void setNodeandor(String nodeandor) {
        this.nodeandor = nodeandor;
    }

    public String getFromName() {
        return fromName;
    }

    public void setFromName(String fromName) {
        this.fromName = fromName;
    }

    public String getToName() {
        return toName;
    }

    public void setToName(String toName) {
        this.toName = toName;
    }

    public String getFromidArray() {
        return fromidArray;
    }

    public void setFromidArray(String fromidArray) {
        this.fromidArray = fromidArray;
    }

    public String getToidArray() {
        return toidArray;
    }

    public void setToidArray(String toidArray) {
        this.toidArray = toidArray;
    }

    public Long[] getSuperiorNodeIds() {
        return superiorNodeIds;
    }

    public void setSuperiorNodeIds(Long[] superiorNodeIds) {
        this.superiorNodeIds = superiorNodeIds;
    }

    public Long[] getLowerNodeIds() {
        return lowerNodeIds;
    }

    public void setLowerNodeIds(Long[] lowerNodeIds) {
        this.lowerNodeIds = lowerNodeIds;
    }

    public String getOperationStartType() {
        return operationStartType;
    }

    public void setOperationStartType(String operationStartType) {
        this.operationStartType = operationStartType;
    }

    public String getOperationLastType() {
        return operationLastType;
    }

    public void setOperationLastType(String operationLastType) {
        this.operationLastType = operationLastType;
    }

    public String getResponseType() {
        return responseType;
    }

    public void setResponseType(String responseType) {
        this.responseType = responseType;
    }

    public String getRevision() {
        return revision;
    }

    public void setRevision(String revision) {
        this.revision = revision;
    }

    public boolean isRejectTostart() {
        return rejectTostart;
    }

    public void setRejectTostart(boolean rejectTostart) {
        this.rejectTostart = rejectTostart;
    }

    public boolean isRejectToprevious() {
        return rejectToprevious;
    }

    public void setRejectToprevious(boolean rejectToprevious) {
        this.rejectToprevious = rejectToprevious;
    }

    public boolean isRejectSkipComplete() {
        return rejectSkipComplete;
    }

    public void setRejectSkipComplete(boolean rejectSkipComplete) {
        this.rejectSkipComplete = rejectSkipComplete;
    }

    public String getAppovedScript() {
        return appovedScript;
    }

    public void setAppovedScript(String appovedScript) {
        this.appovedScript = appovedScript;
    }

    public String getIsRejectTostart() {
        return isRejectTostart;
    }

    public void setIsRejectTostart(String isRejectTostart) {
        this.isRejectTostart = isRejectTostart;
    }

    public boolean isRejectAutomatic() {
        return rejectAutomatic;
    }

    public void setRejectAutomatic(boolean rejectAutomatic) {
        this.rejectAutomatic = rejectAutomatic;
    }

    public String getIsRejectAutomatic() {
        return isRejectAutomatic;
    }

    public void setIsRejectAutomatic(String isRejectAutomatic) {
        this.isRejectAutomatic = isRejectAutomatic;
    }

    public String getRejecttostartScript() {
        return rejecttostartScript;
    }

    public void setRejecttostartScript(String rejecttostartScript) {
        this.rejecttostartScript = rejecttostartScript;
    }

    public String getRejectScript() {
        return rejectScript;
    }

    public void setRejectScript(String rejectScript) {
        this.rejectScript = rejectScript;
    }

    public String getIsWithdraw() {
        return isWithdraw;
    }

    public void setIsWithdraw(String isWithdraw) {
        this.isWithdraw = isWithdraw;
    }

    public String getIsAgent() {
        return isAgent;
    }

    public void setIsAgent(String isAgent) {
        this.isAgent = isAgent;
    }

    public Long getX() {
        return x;
    }

    public void setX(Long x) {
        this.x = x;
    }

    public Long getY() {
        return y;
    }

    public void setY(Long y) {
        this.y = y;
    }

    public String getScript1() {
        return script1;
    }

    public void setScript1(String script1) {
        this.script1 = script1;
    }

    public String getScript2() {
        return script2;
    }

    public void setScript2(String script2) {
        this.script2 = script2;
    }

    public String getScript3() {
        return script3;
    }

    public void setScript3(String script3) {
        this.script3 = script3;
    }

    public String getScript4() {
        return script4;
    }

    public void setScript4(String script4) {
        this.script4 = script4;
    }

    public String getScript5() {
        return script5;
    }

    public void setScript5(String script5) {
        this.script5 = script5;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Long[] getUserIds() {
        return userIds;
    }

    public void setUserIds(Long[] userIds) {
        this.userIds = userIds;
    }
}
